package com.example.demo.web.rest.evt;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Description:
 *
 * @Author zmf
 * @Date 2018/12/14  10:34
 */
@ApiModel("角色关联用户参数")
public class UserRoleEvt implements Serializable{

    private static final long serialVersionUID = 6114085580421870364L;
    @ApiModelProperty("用户ID")
    @NotNull
    private Long userId;
    @ApiModelProperty("角色ID")
    @NotNull
    private Long roleId;

    /*@ApiModelProperty("关联方式 1：直接关联 ；2：用户组管理")
    private Long relatedType;*/

    /*public Long getRelatedType() {
        return relatedType;
    }

    public void setRelatedType(Long relatedType) {
        this.relatedType = relatedType;
    }*/

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        return "UserRoleEvt{" +
                "userId=" + userId +
                ", roleId=" + roleId +
                /*", relatedType=" + relatedType +*/
                '}';
    }
}
